package com.liao.ticket.service;

import com.liao.ticket.dao.pojo.Seat;
import com.liao.ticket.vo.Result;
import com.liao.ticket.vo.params.SeatParams;

import java.util.List;

public interface SeatService {
    // 通过 id 查询 舱位
    Seat selectOneById(Long id);

    // 通过 航班id 查询 舱位
    List<Seat> selectListByFid(Long id);

    // 添加 舱位
    Seat addOne(Seat seat);

    // 通过 id和航班id 修改 舱位
    Integer updateOneById(Seat seat);

    // 通过 id 删除 舱位
    Integer deleteOneById(Long id);

    // 通过 航班id 删除 舱位
    Integer deleteListByFid(Long id);

    Seat selectOneByIdAndFid(Long seatId, Long flightId);

    Result save(SeatParams seatParams);

    Result updateOneByIdAndFid(SeatParams seatParams);

    Result deleteOneByIdAndFid(SeatParams seatParams);
}
